From: Alexei Fedorov Date: Mon, 18 Mar 2019 15:59:34 +0000 (+0000) Subject: Restore PAuth context in case of unknown SMC call X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=317d68e9de0309fe5c53a4f08abc4723a8db9544;p=project%2Fbcm63xx%2Fatf.git Restore PAuth context in case of unknown SMC call Change-Id: I8fb346743b7afddbb8bf5908db4f27ee5a26f99b Signed-off-by: Alexei Fedorov --- diff --git a/bl31/aarch64/runtime_exceptions.S b/bl31/aarch64/runtime_exceptions.S index aa9d0079..c2951768 100644 --- a/bl31/aarch64/runtime_exceptions.S +++ b/bl31/aarch64/runtime_exceptions.S @@ -419,6 +419,9 @@ smc_unknown: */ mov x0, #SMC_UNK str x0, [sp, #CTX_GPREGS_OFFSET + CTX_GPREG_X0] +#if CTX_INCLUDE_PAUTH_REGS + bl pauth_context_save +#endif b restore_gp_registers_eret smc_prohibited: